lcColorRGB Home

Returns integer value (WinAPI COLORREF) from Red, Green, Blue components of a color.

 int lcColorRGB (
   int Red,
   int Green,
   int Blue
 );

Parameters
Red
  Red component of a color, value from 0 to 255
Green
  Green component of a color, value from 0 to 255
Blue
  Blue component of a color, value from 0 to 255

Return Value

  32-bit integer value representing WinAPI COLORREF type.

See Also

  Colors

Code sample:
  int Col;
  Col = lcColorRGB(255,255,255);
  lcPropPutInt( hLcDrw, LC_PROP_DRW_COLORBACKM, Col );
  Col = lcColorRGB(250,0,0);
  lcPropPutInt( hLcDrw, LC_PROP_DRW_COLORFOREM, Col );
  Col = lcColorRGB(0,50,150);
  lcPropPutInt( hLcDrw, LC_PROP_DRW_COLORCURSORM, Col );
  lcWndRedraw( hLcWnd );